export type GoodsInfoType = {
    goodsName: string;
    goodsImgs: Array<string>;
    mainImage: string;
    goodsDesc:  Array<string>;
    goodsPrice: string | number;
    sku: {
        skuList: Array<any>,
        skuSpecs: Array<SkuInfo>,
    }
}

export type SkuInfo = {
    attrId: number | string;
    attrName: string;
    optionList: OptionItemType[]
}

export type SelectedSkuType = {
    isSelected: boolean;
    isMainSku: boolean;
    skuId: number | string;
    skuImage: string;
    skuPrice: number;
    skuName: string;
    stock: number;
    quantity: number;
    // sku组合数
    skuGroupNum?: number;
    selectedNum: number;
    selectedProps: OptionItemType[];
}

export type OptionItemType = {
    name: string;
    id: number | string;
    active: boolean;
    disable: boolean;
    [props: string]: any;
}


export type BtnOptionsItem = {
    btnId: number | string;
    btnTitle: string;
    btnClassName?: string;
}
